const Ajax = window.ajaxFinancialplan;
export default {
  //资源包导航条
  apiBasicPackageResourceList: params => {
    return Ajax.request(`/v1/basic/assetpackage/assetpackage/assetPackageList`, 'post', params, {
      showLoading: true,
    });
  },
  //资产列表
  apiBasicPackageList: params => {
    return Ajax.request(`/v1/basic/assetpackage/assetpackage/businessPlanList`, 'post', params, {
      showLoading: true,
    });
  },
  //资产列表
  apiProjectPackageList: params => {
    return Ajax.request(`/v1/business/plan/info/list`, 'post', params, {
      showLoading: true,
    });
  },
  //发起计划编制
  initiatePlanning: params => {
    return Ajax.request(`/v1/business/PlanCompile/startPlan`, 'post', params, {
      showLoading: true,
    });
  },
  configverify: params => {
    return Ajax.request(`/v1/basic/plan/asset/config/verify`, 'post', params, {
      showLoading: true,
    });
  },

  activitycreate: params => {
    return Ajax.request(`/v1/basic/plan/activity/create`, 'post', params, {
      showLoading: true,
    });
  },

  constant: params => {
    return Ajax.request(`/v1/constant`, 'get', params, {
      showLoading: true,
    });
  },
  //详情-收入计划
  income: params => {
    return Ajax.request(`/v1/basic/plan/asset/income`, 'post', params, {
      showLoading: true,
    });
  },
  //修改
  create: params => {
    return Ajax.request(`/v1/basic/plan/asset/item/edit`, 'post', params, {
      showLoading: true,
    });
  },
  //重点关注
  emphasisAttentionList: params => {
    return Ajax.request(`/v1/basic/focus/focus/emphasisAttentionList`, 'post', params, {
      showLoading: true,
    });
  },
  //编制收入-2
  organizationincome: params =>
    Ajax.request(`/v1/basic/process/organization/income`, 'post', params, {
      showLoading: true,
    }),
  //执行收入-2
  implementincome: params =>
    Ajax.request(`/v1/basic/process/implement/income`, 'post', params, {
      showLoading: true,
    }),

  //编制中-收入计划
  toCompileIncomePlan: params =>
    Ajax.request(`/v1/business/plan/info/item/compareItemTree`, 'post', params, {
      showLoading: true,
    }),
  //编制中-支出计划
  toCompileSpendingPlan: params =>
    Ajax.request(`/v1/basic/plan/organization/expenditure`, 'post', params, {
      showLoading: true,
    }),
  //执行中-收入计划
  toPerformIncomePlan: params =>
    Ajax.request(`/v1/business/plan/info/item/compareItemExecuteTree`, 'post', params, {
      showLoading: true,
    }),
  //执行中-支出计划
  toPerformSpendingPlan: params =>
    Ajax.request(`/v1/basic/plan/implement/expenditure`, 'post', params, {
      showLoading: true,
    }),
  //详情-支出计划
  spendingDefault: params =>
    Ajax.request(`/v1/basic/plan/asset/expend`, 'post', params, {
      showLoading: true,
    }),
  //保存-支出计划
  spendingSave: params =>
    Ajax.request(`/v1/basic/plan/asset/expend/create`, 'post', params, {
      showLoading: true,
    }),
  //收入支出调整事项
  incomeSpendingAdjustTheMatters: params =>
    Ajax.request(`/v1/basic/adjust/income/incomeAdjustment`, 'post', params, {
      showLoading: true,
    }),
  //编制总结
  prepareTheSummary: params =>
    Ajax.request(`/v1/basic/plan/implement/summarize`, 'post', params, {
      showLoading: true,
    }),
  //支出弹框-付款方式
  constantPaymentMethod: params =>
    Ajax.request(`/v1/constant`, 'get', params, {
      showLoading: true,
    }),

  //收入支出调整事项-2
  processIncomeSpendingAdjustTheMatters: params =>
    Ajax.request(`/v1/basic/process/income/incomeAdjustment`, 'post', params, {
      showLoading: true,
    }),
  //编制中-支出计划-2
  processToCompileSpendingPlan: params =>
    Ajax.request(`/v1/basic/process/organization/expenditure`, 'post', params, {
      showLoading: true,
    }),
  //执行中-支出计划-2
  processToPerformSpendingPlan: params =>
    Ajax.request(`/v1/basic/process/implement/expenditure`, 'post', params, {
      showLoading: true,
    }),
  //编制总结-2
  processPrepareTheSummary: params =>
    Ajax.request(`/v1/basic/process/implement/summarize`, 'post', params, {
      showLoading: true,
    }),
  //重点关注-2
  processEmphasisAttentionList: params => {
    return Ajax.request(`/v1/basic/process/focus/emphasisAttentionList`, 'post', params, {
      showLoading: true,
    });
  },
  // 提交
  submitTableCopy: params => {
    return Ajax.request(`/v1/basic/process/planInfo/tableCopy`, 'post', params, {
      showLoading: true,
    });
  },
  //计划详情
  plandetail: params => {
    return Ajax.request(`/v1/basic/plan/plan/detail`, 'post', params, {
      showLoading: true,
    });
  },
  //计划详情-2
  planInfoDetail: params => {
    return Ajax.request(`/v1/basic/process/planInfo/detail`, 'post', params, {
      showLoading: true,
    });
  },
  //设备设施
  dictionary: params => {
    return Ajax.request(`/v1/basic/plan/asset/information `, 'post', params, {
      showLoading: true,
    });
  },
  //支出调整事项，支出事项下拉框
  spendingItems: params => {
    return Ajax.request(`/v1/basic/charge/charge/list`, 'post', params, {
      showLoading: true,
    });
  },
  //支出计划-历史支出表格
  historyProject: params => {
    return Ajax.request(`/v1/basic/process/focus/historyPlan`, 'post', params, {
      showLoading: true,
    });
  },

  //计划变更确认
  planEditConfirm: params => {
    return Ajax.request(`/v1/business/PlanCompile/confirmEditYearPlan`, 'post', params, {
      showLoading: true,
    });
  },

  //导出预算 ｜ 执行
  exportPlan: params =>
    Ajax.download(`/v1/business/subject/export`, params, {
      showLoading: true,
      responseType: 'blob',
    }),

  //导出计划 (月度利润底表 ｜ *月度现金流底表)
  apiExportOtherPlan: params => {
    return Ajax.request(`/v1/business/expenditure/accounting/importAccounting`, 'post', params, {
      showLoading: true,
    });
  },

  //导出计划
  apiExportPlan: params =>
    Ajax.download(`/v1/business/plan/item/export`, params, {
      showLoading: true,
      responseType: 'blob',
    }),

  //导入计划
  apiImportPlan: params =>
    Ajax.uploadParam(`/v1/business/plan/item/import`, params, {
      showLoading: true,
    }),

  //计划发起附件批量保存
  batchFileSave: params => {
    return Ajax.request(`/v1/business/plan/attachment/batch/save`, 'post', params, {
      showLoading: true,
    });
  },

  //计划发起附件详情
  batchFileInfo: params => {
    return Ajax.request(`/v1/business/plan/attachment/list`, 'post', params, {
      showLoading: true,
    });
  },

  //计划发起附件批量提交(月度执行)
  batchFileMonthDoneSubmit: params => {
    return Ajax.request(`/v1/business/todo/complete`, 'post', params, {
      showLoading: true,
    });
  },

  // ---------------------------------------------------------2024-8-26----------------------------------------
  //月度现金流表维护 - 提审
  moneyContrastSubmit: params => {
    return Ajax.request(`/v1/business/cashflow/month/submit/proc`, 'post', params, {
      showLoading: true,
    });
  },

  //月度现金流表维护 - 重置
  moneyContrastReset: params => {
    return Ajax.request(`/v1/business/cashflow/month/analysis/del`, 'post', params, {
      showLoading: true,
    });
  },

  //月度现金流表维护 - 金额对比
  moneyContrastList: params => {
    return Ajax.request(`/v1/business/cashflow/month/analysis`, 'post', params, {
      showLoading: true,
    });
  },

   //月度现金流表维护 - 金额对比的list - 导出
   moneyContrastExport: params => {
    return Ajax.download(`/v1/business/subject/payrecord/list/export`, params, {
      showLoading: true,
      responseType: 'blob',
    });
  },

  //月度现金流表维护 - 金额对比的详情
  moneyContrastInfoList: params => {
    return Ajax.request(`/v1/business/cashflow/proc/list`, 'post', params, {
      showLoading: true,
    });
  },

  //月度现金流表维护 - 编辑比对结果生成的list
  moneyContrastEditList: params => {
    return Ajax.request(`/v1/business/subject/payrecord/list`, 'post', params, {
      showLoading: true,
    });
  },

  //月度现金流表维护 - 编辑比对结果生成的list - 详情（保存过的数据）
  moneyContrastEditInfo: params => {
    return Ajax.request(`/v1/basic/cashflow/diff/desc/list`, 'post', params, {
      showLoading: true,
    });
  },

  //月度现金流表维护 - 编辑比对结果 - 提交
  moneyContrastEditSave: params => {
    return Ajax.request(`/v1/business/cashflow/month/diff/desc/fill`, 'post', params, {
      showLoading: true,
    });
  },
};
